    <div class="pagination">
        <span class="step-links">
            {% if contacts.has_previous %}
                <a href="?page={{ contacts.previous_page_number }}">上一页</a>
            {% endif %}

            <span class="current">
                Page {{ contacts.number }} of {{ contacts.paginator.num_pages }}.
            </span>
            {% if contacts.has_next %}
                <a href="?page={{ contacts.next_page_number }}">下一页</a>
            {% endif %}

        </span>
    </div>